/**
 * @Author: Boring
 * @Description:
 * @File:  add
 * @Date: 2024-02-25 16:03
 */

package node

import (
	"github.com/dotbalo/kubeutils/kubeutils"
	"github.com/gin-gonic/gin"
	"oam-manage-backend/controllers"
	"oam-manage-backend/utils/logs"
)

func List(r *gin.Context) {
	logs.Deubg(nil, "查询node列表")
	var info controllers.Info
	kubeconfig := controllers.NewInfo(r, &info, "查询成功")
	// 接口形式创建
	var kubeUtilser kubeutils.KubeUtilser
	instance := kubeutils.NewNode(kubeconfig, nil)
	kubeUtilser = instance
	info.List(r, kubeUtilser)
}
